Page({
    data: {
       productList:[
            {imageUrl:'../../image/lvyou@2x.png',title:'中联6012原厂标准节80节标',time:'2019-07-11',
            address:'湖北武汉',headerImage:'../../image/installheaderimg.jpg',boss:'李老板',cnt:8,money:16.32},
            {imageUrl:'../../image/lvyou@2x.png',title:'中联6012原厂标准节80节标',time:'2019-07-11',
            address:'湖北武汉',headerImage:'../../image/installheaderimg.jpg',boss:'李老板',cnt:8,money:16.32},
            {imageUrl:'../../image/lvyou@2x.png',title:'中联6012原厂标准节80节标',time:'2019-07-11',
            address:'湖北武汉',headerImage:'../../image/installheaderimg.jpg',boss:'李老板',cnt:8,money:16.32},
            {imageUrl:'../../image/lvyou@2x.png',title:'中联6012原厂标准节80节标',time:'2019-07-11',
            address:'湖北武汉',headerImage:'../../image/installheaderimg.jpg',boss:'李老板',cnt:8,money:16.32},
            {imageUrl:'../../image/lvyou@2x.png',title:'中联6012原厂标准节80节标',time:'2019-07-11',
            address:'湖北武汉',headerImage:'../../image/installheaderimg.jpg',boss:'李老板',cnt:8,money:16.32},
            {imageUrl:'../../image/lvyou@2x.png',title:'中联6012原厂标准节80节标',time:'2019-07-11',
            address:'湖北武汉',headerImage:'../../image/installheaderimg.jpg',boss:'李老板',cnt:8,money:16.32}
        ],
        showList:[]

    },
    onLoad: function(options) {
       var userInfo= wx.getStorageSync('userInfo');
        this.setData({
            userInfo:userInfo
        })
         this.getMySheBei();
    },
    onReady: function() {
        // 生命周期函数--监听页面初次渲染完成

    },
    getMySheBei:function () {
         var _self=this;
         wx.request({
            url:getApp().globalData.baseUrl+'/wx/equipment/collect/getList?openid='+this.data.userInfo.openid,
            method:"GET",
            header: {
                'openid':this.data.userInfo.openid, //公用请求头
                'content-type': 'application/json'
            },
            success: function(res) {
           
             console.log(res)
             _self.setData({
                showList:res.data.obj.list
             })
             if (res.data.code==200) {

             }else{
              
             }
         }
     })
            
    },
    onShow: function() {
        // 生命周期函数--监听页面显示
        // 生命周期函数--监听页面加 String2
       


    },
    onHide: function() {
        // 生命周期函数--监听页面隐藏

    }

})